package com.example.royalchef.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * author: Administrator
 * created on: 2017/6/27 21:51
 * description:
 */

public class DynamicInfo implements Parcelable {
    private String avatar;
    private String name;
    private String time;
    private String title;
    private ArrayList<String> checkList;
    private String address;
    private String browse;
    private String comment;
    private String good;

    public DynamicInfo() {
    }

    public DynamicInfo(String avatar, String name, String time, String title, ArrayList<String> checkList, String address, String browse, String comment, String good) {
        this.avatar = avatar;
        this.name = name;
        this.time = time;
        this.title = title;
        this.checkList = checkList;
        this.address = address;
        this.browse = browse;
        this.comment = comment;
        this.good = good;
    }

    protected DynamicInfo(Parcel in) {
        avatar = in.readString();
        name = in.readString();
        time = in.readString();
        title = in.readString();
        checkList = in.createStringArrayList();
        address = in.readString();
        browse = in.readString();
        comment = in.readString();
        good = in.readString();
    }

    public static final Creator<DynamicInfo> CREATOR = new Creator<DynamicInfo>() {
        @Override
        public DynamicInfo createFromParcel(Parcel in) {
            return new DynamicInfo(in);
        }

        @Override
        public DynamicInfo[] newArray(int size) {
            return new DynamicInfo[size];
        }
    };

    public ArrayList<String> getCheckList() {
        return checkList;
    }

    public void setCheckList(ArrayList<String> checkList) {
        this.checkList = checkList;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBrowse() {
        return browse;
    }

    public void setBrowse(String browse) {
        this.browse = browse;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getGood() {
        return good;
    }

    public void setGood(String good) {
        this.good = good;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(avatar);
        dest.writeString(name);
        dest.writeString(time);
        dest.writeString(title);
        dest.writeStringList(checkList);
        dest.writeString(address);
        dest.writeString(browse);
        dest.writeString(comment);
        dest.writeString(good);
    }
}
